package com.tx.dao.user;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class UserDao extends HibernateDaoSupport {

	public void test() {
		getSession(true);
		getHibernateTemplate().getSessionFactory();
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		BeanFactory context = new ClassPathXmlApplicationContext("applicationContext.xml");
		System.out.println(context);
//		UserDao userDao = new UserDao();
//		userDao.test();
	}

}
